import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import http from './assets/js/http.js'
import '@/assets/fonts/iconfont.css'
import "@/assets/css/mall-common.scss";
import VueLazyload from 'vue-lazyload'

//axios这个服务在每个Vue组件(Vue的实例)中都有可能使用，所以我们需要将这个服务挂载到Vue的原型对象上，让每一个Vue实例都可以调用axios的方法
Vue.prototype.$http = http;
Vue.use(ElementUI);
Vue.config.productionTip = false;

Vue.use(VueLazyload)
// , {
//   loading: require('./assets/image/login/loading.gif'),
// }
new Vue({
  router,
  store,
  beforeCreate() {
    Vue.prototype.$bus = this;
  },
  render: h => h(App)
}).$mount('#app')
